#!/usr/bin/env python3

class SchoolMember():
    def __init__(self,name,sex,age,addr):
        self.name,self.sex,self.age,self.addr=name,sex,age,addr
    def whoisme(self):
        return "i am schoolmember"

sm=SchoolMember('wang','man',14,'henan')
print(sm.whoisme())


class Teacher(SchoolMember):
    def __init__(self,name,sex,age,addr,course,money):
        super().__init__(name,sex,age,addr)
        self.course=course
        self.money=money
    def whoisme(self):
        return "i am Teacher"
        
t=Teacher('xiaoli','man',13,'hunan','math','1990')
print(t.name,' ',t.sex,' ',t.age)
print(t.whoisme())


class Student(SchoolMember):
    def __init__(self,name,sex,age,addr,score,course):
        super().__init__(name,sex,age,addr)
        self.score=score
        self.course=course
    def whoisme(self):
        return "i am Student"

s=Student('Stu1','man',12,'hebei','89','Class-one')
print(s.name,' ',s.sex,' ',s.course)
print(s.whoisme())
